﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 游戏平台原型
{
    public partial class Form_AddRoom : Form
    {
        public Form_AddRoom()
        {
            InitializeComponent();
        }

        private void btn_addroom_ok_Click(object sender, EventArgs e)
        {
            Lobby.Lobby1.AddRoom(tb_addroom_name.Text, tb_addroom_password.Text, int.Parse(tb_addroom_maxperson.Text), int.Parse(cb_addroom_maxpanel.Text));
            this.Close();
        }
    }
}
